package com.example.administrator.appli.observ;

import android.util.Log;

import java.util.Observable;

/**
 * Created by Administrator on 2017/6/2.
 */
public class Observered extends Observable {

    private static final String TAG = "Observered";

    public void notifyChange(int count) throws InterruptedException {
        for (int i = 0; i < count; i++) {
            setChanged();
            Log.e(TAG, "notifyChange: "+i );
            notifyObservers(i);
            Thread.sleep(500);

        }

    }
}
